YAHOO.namespace("ajaxstack");
YAHOO.ajaxstack.HtmlExtTests = new YAHOO.tool.TestCase({

	name: "Html Tests",

	//--------------------------------------------- 
	// Setup and tear down 
	//---------------------------------------------

	setUp: function()
	{
	},

	tearDown: function()
	{
	},

	//--------------------------------------------- 
	// Tests 
	//---------------------------------------------

	testActionLinks: function()
	{
		Assert.areEqual('<span href="test" class="action-link"/>', H.actionLink({ href: "test" }));
		Assert.areEqual('<span href="test" class="a-class action-link"/>',
			H.actionLink({ href: "test", 'class': 'a-class' }));
		Assert.areEqual('<span href="test" class="a-class action-link">link body</span>',
			H.actionLink({ href: "test", 'class': 'a-class' }, "link body"));
		Assert.areEqual('<a href="test" class="action-link"/>', H.actionLink({ tag: 'a', href: "test" }));
	},

	testNavLinks: function()
	{
		Assert.areEqual('<span href="test" class="nav-link"/>', H.navLink({ href: "test" }));
		Assert.areEqual('<span href="test" class="a-class nav-link"/>',
			H.navLink({ href: "test", 'class': 'a-class' }));
		Assert.areEqual('<span href="test" class="a-class nav-link">link body</span>',
			H.navLink({ href: "test", 'class': 'a-class' }, "link body"));
		Assert.areEqual('<a href="test" class="nav-link"/>', H.navLink({ tag: 'a', href: "test" }));
	}

});

